import { applyMiddleware, combineReducers, createStore } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk'
import allReducers from './reducers'


export type AppState = ReturnType<typeof allReducers>

export default createStore(allReducers, composeWithDevTools(applyMiddleware(thunk)))